package com.cupk.entities;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
@Data
@TableName("projects")
public class Project {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String projectName;
    private String projectCode;
    private String description;
    private LocalDate startDate;
    private LocalDate endDate;
    private String status;
    private BigDecimal budgetAmount;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private List<ProjectMember> members;
    @TableField(exist = false)
    private List<Task> tasks;
    @TableField(exist = false)
    private List<Funding> fundings;
    @TableField(exist = false)
    private List<Publication> publications;
    @TableField(exist = false)
    private Map<String, Long> meta;
}